package com.situ.day5.cal;

public abstract class AbstractCal {
    protected int num1;
    protected int num2;

    public AbstractCal() {

    }

    public AbstractCal(int num1, int num2) {
        this.num1 = num1;
        this.num2 = num2;
    }

    //签名 Ctrl+Shift+/
    /*public int getResult() {
        //方法体
        return 0;
    }*/

    //Missing method body, or declare abstract
    //父类没有实现，只是定义了一个标准
    public abstract int getResult();


    public int getNum1() {
        return num1;
    }

    public void setNum1(int num1) {
        this.num1 = num1;
    }

    public int getNum2() {
        return num2;
    }

    public void setNum2(int num2) {
        this.num2 = num2;
    }
}
